<?php if ( ! defined('ABS_PATH')) exit('ABS_PATH is not loaded. Direct access is not allowed.');


    class Cron extends DAO {

        private static $instance ;

        public static function newInstance() {
            if(!self::$instance instanceof self) {
                self::$instance = new self ;
            }
            return self::$instance ;
        }


        public function getTableName() { return DB_TABLE_PREFIX . 't_cron'; }

        public function getCronByType($type) {
            return $this->conn->osc_dbFetchResult('SELECT * FROM %st_cron WHERE e_type = \'%s\'', DB_TABLE_PREFIX, $type);
        }

    }

?>